package com.gfm.story.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.gfm.story.entity.story.Book;
import com.gfm.story.entity.story.Chapter;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @BelongsProject: story
 * @BelongsPackage: com.gfm.story.dao
 * @Author: Administrator
 * @CreateTime: 2019-06-04 13:39
 * @Description: ${Description}
 */
public interface ChapterDao extends BaseMapper<Chapter> {

    List<Chapter> getChapterByNews();

    List<Chapter> getChapterByChapterId(@Param("chapterId") Long chapterId);



    List<Book> getNewBookPage(Map<String, Object> map);

    int getNewBookCount(Map<String, Object> map);

    List<Chapter> getChapterByBookId(@Param("id") Long id);

    List<Chapter> getChapterPage(Map<String, Object> map1);
    int getChapterCountByBookId(Map<String, Object> map1);

    List<Chapter> getChapterNewPage(Map<String, Object> map1);
}
